-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Updates python setup.py for recent license changes #14778
Conversation
tools/staticbuild/build_lib.sh
Outdated
@@ -34,6 +34,7 @@ $MAKE DEPS_PATH=$DEPS_PATH $PWD/3rdparty/tvm/nnvm/lib/libnnvm.a | |||
$MAKE DEPS_PATH=$DEPS_PATH PSLITE | |||
|
|||
if [[ $VARIANT == *mkl ]]; then | |||
MKLDNN_LICENSE='license.txt' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These licenses are included as part of the source LICENSE. There is no need to re-add them
@@ -66,12 +66,8 @@ def has_ext_modules(self): | |||
shutil.copy(LIB_PATH[0], os.path.join(CURRENT_DIR, 'mxnet')) | |||
|
|||
# copy license and notice | |||
shutil.copy(os.path.join(CURRENT_DIR, 'mxnet-build/LICENSE'), | |||
os.path.join(CURRENT_DIR, 'mxnet/LICENSE')) | |||
shutil.copy(os.path.join(CURRENT_DIR, 'mxnet-build/DISCLAIMER'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not currently add this DISCLAIMER. Can you add it to the build similarly to https://github.com/apache/incubator-mxnet/pull/14726/files#diff-2c9b07f53d24caa1ac38f1eb9c371118R70?
23fd22b
to
9ce0727
Compare
2454923
to
7ebb560
Compare
@zachgk I've addressed your comments ^^ thanks for taking a look! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
* Updates license packing * Adds DISCLAIMER to static build licenses
Description
A recent PR #14726 has altered the way the static build deals with licenses. This has broken the
setup.py
script for building the release pip packages. This PR fixes this problem.I've re-added some of the removed licenses, this should be confirmed to be OK by the submitters of the aforementioned PR. @lanking520 could you please take a look?